package com.kusiri.kframework.action
{
	
	import com.kusiri.kframework.IKfApplication;
	import com.kusiri.kframework.KfApplicationLocator;
	import com.kusiri.kframework.ui.IKfUiComponent;
	import com.kusiri.kframework.ui.IKfUiComponentOptions;
	
	import mx.controls.Alert;
	 
	public class KfNewUiComponentAction implements IKfAction
	{
		private var kfApplication : IKfApplication = new KfApplicationLocator().kfApplication;
		public var uiComponent : IKfUiComponent;;
		public var uiComponentOptions : IKfUiComponentOptions = null;
		
		public function KfNewUiComponentAction() : void
		{
			//
		}
		
		/**
		 * Execute the action
		 */
		public function execute() : void
		{
			// fire off some event;
			kfApplication.uiContainer.addUiComponent(uiComponent, null, null, uiComponentOptions);
		}


	}
}